#tmp backups plugin v1.2b
def inf(support,im_types,ex_types,C_mthds): #get plugin info
    support.append("*.tmp") #supported import type
    im_types.append(('UMC backup','*.tmp')) #individual import type
    ex_types.append(('UMC backup','*.tmp')) #individual export type
    C_mthds.append(['tmp','UMC','im_UMC','ex_UMC']) #conversion method info/key
    #([ file_type , button_text/key, imbtn_name, exbtn_name ])

def impt(imfl,imkey,debug): #import function
    if imfl.split(".")[-1] == "tmp" and imkey == 'UMC': #check extension + safety check (requitred)
        fr = open(imfl,'r')
        fw = open('global.tmp','w')
        fw.write(str(fr.read())) #already in the proper format, we don't need to do conversion
        fr.close()
        fw.close() #close the files when finished

def expt(exfl,exkey,debug): #export function
    if exfl.split(".")[-1] == "tmp" and exkey == 'UMC': #check extension + safety check (requitred)
        fr = open('global.tmp','r')
        fw = open(exfl,'w')
        fw.write(str(fr.read())) #already in the proper format, we don't need to do conversion
        fr.close()
        fw.close() #close the files when finished
